//
//  XHomeSegementView.h
//  Bees
//
//  Created by Xiaohan on 2018/12/18.
//  Copyright © 2018 xiaohan. All rights reserved.
//

#import <UIKit/UIKit.h>

#define KHomeSegementHeight 50.0f
NS_ASSUME_NONNULL_BEGIN
typedef void(^XHomeSegementBlock)(NSInteger index);

@interface XHomeSegementView : UITableViewHeaderFooterView
@property (nonatomic, strong) UIScrollView *segementView;
 /**< 指示杆*/
@property (nonatomic, strong) UIView *indicateView;

@property (nonatomic, assign) CGFloat fixedWidth;
@property (nonatomic, strong) NSArray *titles;
//**< 头部segementView的高度*/
@property (nonatomic, assign) CGFloat segementHeight;
/**< 当前被选中的按钮*/
@property (nonatomic, strong) UIButton *selectedButton;
 /**< 存放按钮的宽度*/
@property (nonatomic, strong) NSMutableArray *widthArr;
   /**< 指示杆高度*/
@property (nonatomic, assign) CGFloat indicateHeight;
@property (nonatomic, copy) XHomeSegementBlock resultBlock;

@property (nonatomic, assign) NSInteger selIndex;

@property (nonatomic, copy) NSString * changeNotiStr;
@end

NS_ASSUME_NONNULL_END

///第三组提示视图  推荐Dapps
@interface XHomeTipHeadView : UITableViewHeaderFooterView
@property (nonatomic,strong) UILabel *titleLab;
@end


